/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ui;

import entities.Department;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author TungGreen
 */
@ManagedBean
@SessionScoped
public class DeparmentProgess {
    @EJB
    private biz.DeparmentProgess deparmentProgess;
private List<Department> lstDepartment;
    /**
     * Function get list Department
     *
     * @return
     */
    public List<Department> getDepartmentAll() {
        //call ejb to get list department form DB
        lstDepartment = deparmentProgess.getAllDepartment();
        return lstDepartment;
    }

}
